#include "Animal.h"
#include <iostream>
using namespace std;
void Animal::setAge(int x)
{
	age = x;
}
bool Animal::addAge(int x)
{
	age += x;
	if (age < ageLimit)
		return true;
	else
		return false;
}
int Animal::getAge(void) const
{
	return age;
}
void Animal::setGender(Gender x)
{
	gen = x;
}
Gender Animal::getGender(void) const
{
	return gen;
}
bool Animal::isMale(void) const
{
	if (gen)
		return true;
	else
		return false;
}
bool Animal::isFemale(void) const
{
	if (gen == 0)
		return true;
	else
		return false;
}
/*void Animal::print(void)
{
	cout << gen << " " << age << " " << ageLimit;
}*/
